////////////////////////////////////////////////////////////////////////////////
// Copyright 2005 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   TASK
// AUTHOR           :   Ric Yik 
// DATE CREATE      :   2005/12/29
// DESCRIPTION      :   a CRITERIA file for the function, TASK
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2005/12/29   Ric Yik         1.0                 source is generated.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.app.setup.taskMaster.criteria;

import com.erp.framework.model.criteria.SimpleSearchMaintStyleSrchCriteria;

/**
* <p>A <strong>SrchCriteria</strong>
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this bean is to store the user search criteria input
* for database query.
*
* @author          Ric Yik 
* @version 1.0     2005/12/29
* @since           FrameWork 1.0
*
*/

// Note:
// Currently only generates the first 5 fields of a table
// However, this number can be set in GenConstants.NO_CRITERIA

public class TaskHdrSrchCriteria extends SimpleSearchMaintStyleSrchCriteria {

	//Searching Criteria Attributes (DB Table Name: T_TASK_HDR)
	private String srchCompanyCode;                  //DB Column Name: COMPANY_CODE
	private String srchStatus;                       //DB Column Name: STATUS
	private String srchDocTypeFr;                    //DB Column Name: DOC_TYPE
	private String srchDocTypeTo;                    //DB Column Name: DOC_TYPE
	private String srchDocDescFr;                    //DB Column Name: DOC_DESC
	private String srchDocDescTo;                    //DB Column Name: DOC_DESC

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Ric Yik 
	* @since      FrameWork 1.0
	*/
	public String toString() {
		String pkStr = "PK: {srchDocTypeFr = " + this.srchDocTypeFr
			+ "\n, srchDocTypeTo = " + this.srchDocTypeTo + "}\n";

		String colStr = "COL: {srchDocDescFr = " + this.srchDocDescFr
			+ "\n, srchDocDescTo = " + this.srchDocDescTo + "}\n";

		String mandatoryStr = "{srchCompanyCode = " + this.srchCompanyCode
			+ "\n, srchStatus = " + this.srchStatus
			+ "}\n";

		return "toString() is:\n" + mandatoryStr + pkStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods) for searching criterias
	////////////////////////////////////////////////////////////////////////////////

	public String getSrchCompanyCode() {
		return this.srchCompanyCode;
	}

	public String getSrchStatus() {
		return this.srchStatus;
	}

	public String getSrchDocTypeFr() {
		return this.srchDocTypeFr;
	}

	public String getSrchDocTypeTo() {
		return this.srchDocTypeTo;
	}

	public String getSrchDocDescFr() {
		return this.srchDocDescFr;
	}

	public String getSrchDocDescTo() {
		return this.srchDocDescTo;
	}

	public void setSrchCompanyCode(String srchCompanyCode) {
		this.srchCompanyCode = srchCompanyCode;
	}

	public void setSrchStatus(String srchStatus) {
		this.srchStatus = srchStatus;
	}

	public void setSrchDocTypeFr(String srchDocTypeFr) {
		this.srchDocTypeFr = srchDocTypeFr;
	}

	public void setSrchDocTypeTo(String srchDocTypeTo) {
		this.srchDocTypeTo = srchDocTypeTo;
	}

	public void setSrchDocDescFr(String srchDocDescFr) {
		this.srchDocDescFr = srchDocDescFr;
	}

	public void setSrchDocDescTo(String srchDocDescTo) {
		this.srchDocDescTo = srchDocDescTo;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Other Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////


}
